package drug

import (
	v1 "Project/api/v1"
	"github.com/gin-gonic/gin"
)

type DrugRecordRouter struct{}

func (d *DrugRecordRouter) InitDrugRecordRouter(Router *gin.RouterGroup) {
	drugRecordRouter := Router.Group("api/drug-record")
	drugRecordApi := v1.ApiGroupApp.DrugApiGroup.DrugRecordApi
	{
		drugRecordRouter.POST("", drugRecordApi.AddDrugRecord)
		drugRecordRouter.GET("", drugRecordApi.GetDrugRecord)
		drugRecordRouter.DELETE("/:drug_record_id", drugRecordApi.DeleteDrugRecord)
		drugRecordRouter.PUT("", drugRecordApi.UpdateDrugRecord)
	}
}
